import http from '../utils/axios';
interface getListFindData {
  brandName?: string;
  goodsBrandId?: number;
  goodsCategoryId?: number;
  goodsName?: string;
  goodsSerNum?: string;
  goodsStatus?: string;
  goodsTrail?: string;
  limit?: number;
  name?: string;
  number?: string;
  page?: number;

  goodsId?: number;
}

export const getListFind = (data: getListFindData) => {
  return http.post<any>('/other/shopping/goods/getListFindByCon', data);
};

export const deleteById = (params: getListFindData) => {
  return http.get<any>('/other/shopping/goods/updateStatus', params);
};
export const updateGoodsData = (data: any) => {
  return http.post<any>('/other/shopping/goods/updateGoods', data);
};

export const researchData = (data: any) => {
  return http.post<any>('/other/shopping/goods/getListFindByCon', data);
};
export const addGoodsData = (data: any) => {
  return http.post<any>('/other/shopping/goods/insertGoods', data);
};
export const addListGoodsData = (data: any) => {
  return http.post<any>('/other/shopping/sku/insertSku', data);
};

export const sortList = (data: any) => {
  return http.post<any>('/other/shopping/goods/getListFindByCon', data);
};
